package com.sunnada.exam.vo;

import com.sunnada.exam.po.AnswerPo;
import lombok.Data;

@Data
public class AnswerVo {
    /**
     * 选项
     */
    private String key;
    /**
     * 分数
     */
    private int value;

    public AnswerVo(){}

    public AnswerVo(AnswerPo answerPo){
        this.key = answerPo.getAnswer();
        this.value = answerPo.getValue();
    }

    public AnswerVo(String key, int value){
        this.key = key;
        this.value = value;
    }
}
